package com.sys.servlet;

import com.sys.dao.sysDao;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name = "getItemDiskServlet", urlPatterns = "/sys/getItemDisk", description = "获取盘损记录")
public class getItemDiskServlet extends sysServlet {
  @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    setHeadHtml(req, resp, "getItemDiskServlet");
    sysDao dao = new sysDao();
    PrintWriter out = resp.getWriter();

    dao.getItemDisk(out::print);
  }
}
